//
//  ScanItem.m
//  HengHuaSupervision
//
//  Created by XD-XY on 3/27/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "ScanItem.h"

@implementation ScanItem
-(instancetype) initWithDictionary:(NSDictionary*) dic{
    
    NSCParameterAssert(dic);
    self = [super init];
    self.assert_id = [dic valueForKey:@"assert_id"];
    self.record_id = [dic valueForKey:@"id"];
    self.tag_code = [dic valueForKey:@"tag_code"];
    self.scan_time = [dic valueForKey:@"scan_time"];
    self.scan_location_gps = [dic valueForKey:@"scan_location_gps"];
    self.scan_location = [dic valueForKey:@"scan_location"];
    self.scan_device = [dic valueForKey:@"scan_device"];
    self.scan_devicename = [dic valueForKey:@"scan_devicename"];
    self.scan_userid = [dic valueForKey:@"scan_userid"];
    self.scan_username = [dic valueForKey:@"scan_username"];
    self.status = [dic valueForKey:@"status"];
    self.breviaryphoto = [dic valueForKey:@"breviaryphoto"];
    self.photphoto = [dic valueForKey:@"photphoto"];
    return self;
}

@end
